import request from '@/utils/request'

// 查询预备党员申请列表
export function listProbationary(query) {
  return request({
    url: '/system/probationary/list',
    method: 'get',
    params: query
  })
}

// 查询预备党员申请详细
export function getProbationary(probationaryId) {
  return request({
    url: '/system/probationary/' + probationaryId,
    method: 'get'
  })
}

// 新增预备党员申请
export function addProbationary(data) {
  return request({
    url: '/system/probationary',
    method: 'post',
    data: data
  })
}

// 修改预备党员申请
export function updateProbationary(data) {
  return request({
    url: '/system/probationary',
    method: 'put',
    data: data
  })
}

// 删除预备党员申请
export function delProbationary(probationaryId) {
  return request({
    url: '/system/probationary/' + probationaryId,
    method: 'delete'
  })
}

// 审核预备党员申请
export function auditProbationary(data) {
  return request({
    url: '/system/probationary/audit',
    method: 'put',
    data: data
  })
}